package com.sdsmusic.playlist;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.sdsmusic.Song.SongVO;
import com.sdsmusic.controller.Controller;
import com.sdsmusic.member.MemberDAO;
import com.sdsmusic.member.MemberVO;


public class PlaylistController implements Controller{

	@Override
	public String handleRequest(HttpServletRequest request) {
		HttpSession session = request.getSession();
		
		MemberVO member = (MemberVO)session.getAttribute("member");
		ArrayList<SongVO> songList= new PlaylistDAO().getPlayList(member);		
		session.setAttribute("song_list", songList);
		return "./playlist.jsp";
	}

}
